<div class="centercontent tables">
<div class="pageheader notab">
<h1 class="pagetitle">Manajemen Anggota</h1>

<span class="pagedesc">Informasi daftar anggota</span> 
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div class="notibar announcement">
                        <a class="close"></a>
                        <h3><strong>Form harus diisi semua</strong></h3>
                    </div><!-- notification announce -->
<div class="contenttitle2">
<h3>Ubah Profil</h3>
</div>
<?php if($anggota->num_rows() > 0) {?>

<form class="stdform" action="<?php echo base_url().'index.php/anggota/ubah_profil1'?>" method="post" enctype="multipart/form-data">
                       <?php foreach($anggota->result() as $rows){ ?>
							<p style="margin-left:-250px">
							<span style="margin-left:250px">Ubah Foto Anggota</span>
							<span class="field" style="margin-left:250px">
							<img src="<?php echo base_url().$foto=$rows->foto_anggota?>" width="10%" height="10%">
							<br/>
								<input name="foto_anggota" type="file" />
							</span>
							</p>
							
							<p style="margin-left:-250px">
								<span style="margin-left:250px">Nama</span>
								<span class="field" style="margin-left:250px"><input name="nama" class="mediuminput" type="text" value="<?php $nama=$rows->nama_anggota; echo $nama;?>"/></span>
							</p>
							<?php /*
							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">NRP</span>
								<span class="field" style="margin-left:250px"><input name="NRP" class="mediuminput" type="text" value="<?php $NRP=$rows->id_anggota; echo $NRP; ?>" /></span>
							</p>
							*/?>
							
							 <p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Nomor Telepon</span>
								<span class="field" style="margin-left:250px"><input name="telepon" class="smallinput" type="text" value="<?php $telp=$rows->no_telepon; echo $telp;?>" /></span>
								
							</p>
							<p style="margin-left:-250px">
								<span style="margin-left:250px">Alamat</span>
								<span class="field" style="margin-left:250px">
								<textarea class="longinput" cols="80" rows="5" name="alamat"><?php $alamat=$rows->alamat; echo $alamat;?></textarea>
								</span>
							</p>
							
							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Jurusan</span>
								<span class="field" style="margin-left:250px"><input name="jurusan" class="smallinput" type="text" value="<?php $jurusan=$rows->jurusan; echo $jurusan;?>" /></span>
								
							</p>
							<?php /*
							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Organisasi</span>
								<span class="field" style="margin-left:250px">
								<?php if($rows->id_organisasi==1){ ?>
								<select name="organisasi"><option value="1">ITS Online</option><><option value="2">ITS TV</option></select>
								<?php  }else{?>
								<select name="organisasi"><option value="2">ITS TV</option><><option value="1">ITS Online</option></select>
								<?php }?>
								</span>
							</p>
							*/?>					
							<p style="margin-left:-250px">
								<span style="margin-left:250px">Biodata</span>
								<span class="field" style="margin-left:250px">
								<textarea class="longinput" cols="80" rows="5" name="biodata" ><?php $biodata=$rows->biodata; echo $biodata;?></textarea>
								</span>
							</p>
							
							<!--p style="margin-left:-250px">
								<span style="margin-left:250px">Foto Anggota</span>
								<span class="field" style="margin-left:250px">
									<input name="foto_anggota" type="file" />
								</span>
							</p-->
							
							
							
                        <p class="stdformbutton" style="margin-left:0px" >
                        	<button class="submit radius2">Ganti Profil</button>
                        
						
						<button class="submit radius2" href="<?php echo base_url().'index.php/home/'?>">Batal</button>
						
						</p>
                    </form>
	
					
<?php  } } else { echo 
						 '<div class="notibar msginfo">
							<p>Data belum dipilih.</p>
						  </div>';}?>					
						  
	</div>
</div>